Improve correctness of 'eshell-quote-argument'
authorJim Porter <jporterbugs@gmail.com>
Sun, 9 Jun 2024 22:21:08 +0000 (15:21 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sun, 9 Jun 2024 22:28:40 +0000 (15:28 -0700)
commit32a75ecc73b78ad922b2ae66d30b907b13e19cb8
tree86767a589e8a9e25ff0d1fcafb5ecd2b3bb656d4
parent12d44fe6420e84eab8f750f9a0f8cd73c3e70bb2
Improve correctness of 'eshell-quote-argument'

* lisp/eshell/esh-arg.el (eshell-quote-argument): Mention that this
function is for use within Eshell buffers.
(eshell-quote-backslash): Properly quote newlines.

* lisp/eshell/em-unix.el (eshell/cat, eshell/du): Throw
'eshell-external' instead; that's what it's here for.

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test-quote-argument):
Remove.
(esh-proc-test/emacs-command):
* test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/set)
(esh-var-test/path-var/set-locally): Use 'eshell-quote-argument'.

* test/lisp/eshell/em-unix-tests.el (em-unix-test/compile/interactive):
Use 'shell-quote-argument' (Note: *not* 'eshell-...').
lisp/eshell/em-unix.el
lisp/eshell/esh-arg.el
test/lisp/eshell/em-unix-tests.el
test/lisp/eshell/esh-proc-tests.el
test/lisp/eshell/esh-var-tests.el